<h1>Clients </h1>
<table>
<tr>
<th>Client</th>
<th>Actions</th>
</tr>

<?php foreach($result as $account): ?>
  <tr style="background-color:#FFFFFF">
    <td><?php echo $account['Account']['name']; ?> </td>
    
    <td><?php echo $this->Html->link('DMs', array('controller'=>'Posts','action'=>'viewDirectMessages', $account['Account']['accID'])) ;?> </td>
  </tr>
  <?php endforeach; ?>
 
</table>